const path = require('path');
module.exports = {
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.resolve(__dirname, 'src'),
            }
        }
    },
    lintOnSave: false, // eslint 关闭
    devServer: {
        overlay: {
            warnings: false,
            errors: false
        },
        proxy: { //配置跨域
            '/api': {
                target: 'http://127.0.0.1:3000', //这里后台的地址模拟的;应该填写你们真实的后台接口
                changOrigin: true, //允许跨域
                pathRewrite: {
                    '^/api': ''
                }
            },
        }
    },
}